#include "MsgDef.h"
#include "mMsgUndef.h"

#define BEGIN_MSG_NAMESPACE(NAMESPACE, START_INDEX) \
	namespace NAMESPACE { \

#define BEGIN_MSG(TYPE) \
struct s##TYPE : sMsg \
	{ \
	s##TYPE(); \
	virtual sMsg* Copy(); \

//#define BEGIN_MSG_API(API, TYPE) \
//struct API s##TYPE : sMsg \
//	{ \
//	s##TYPE(); \
//	virtual sMsg* Copy(); \

#define END_MSG() \
	};

#define END_MSG_NAMESPACE() \
	}

#define MSG_FIELD(TYPE, NAME, VALUE) \
	TYPE NAME;